/**
 * @description 会员表
 */
const seq = require('../seq')
const { INTEGER, DATE } = require('../types')

const Member = seq.define('member', {
  lastClockDate: {
    type: DATE,
    comment: '最后一次的打卡时间'
  },
  clockCount: {
    type: INTEGER,
    defaultValue: 0,
    comment: '打卡次数',
  },
  // Sequelize 自动创建的外键：
  // userId 用户 ID
}, {
  paranoid: true,
});

module.exports = Member
